
public class OOPUsing {

	public static void main(String[] args) {
//		Human human = new Human();
		
		Human woman = new Human(30);
		woman.name = "Daria";
		
		Employee vasyaPupkin = new Employee();
//		vasyaPupkin.run(25);
//		woman.run(-5);
		 
		vasyaPupkin.setSalary(11);
		
		Director director = new Director();
		director.name = "Ivanov Ivan";
		
		Human[] humans = new Human[3];
		humans[0] = woman;
		humans[1] = vasyaPupkin;
		humans[2] = director;
		
//		for (Human human : humans){
//			human.run(11);
//		}
		
		String value = "Old value";
		woman.changeParameter(value);
		System.out.println(value);
		
		System.out.println(woman.toString());
		
		if (!woman.equals(director)){
			System.out.println(woman.hashCode());
		}
		
		vasyaPupkin.PI = 3.143;
		vasyaPupkin.salary = 1500;
		
		Employee employee = new Employee();
		System.out.println(employee.PI);
		System.out.println(employee.salary);
		
	}
}
